//
//  ILGView.m
//  ILGDemo
//
//  Created by happy on 2020/3/8.
//  Copyright © 2020 Happy. All rights reserved.
//

#import "ILGView.h"

@implementation ILGView

#pragma mark - UIView

- (void)drawRect:(CGRect)rect {
    CGContextRef context = UIGraphicsGetCurrentContext();
    //背景颜色设置
    [self.myColor set];
    CGContextFillRect(context, rect);
}


# pragma mark - UIResponder

//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    [super touchesBegan:touches withEvent:event];
//    NSLog(@"tag = %d, %s", self.tag, __func__);
//}
//
//- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    [super touchesMoved:touches withEvent:event];
//    NSLog(@"tag = %d, %s", self.tag, __func__);
//}
//
//- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    [super touchesEnded:touches withEvent:event];
//    NSLog(@"tag = %d, %s", self.tag, __func__);
//}
//
//- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    [super touchesCancelled:touches withEvent:event];
//    NSLog(@"tag = %d, %s", self.tag, __func__);
//}


#pragma mark - NSObject

- (void)dealloc
{
    NSLog(@"%s", __func__);
}


#pragma mark - other


@end
